package com.erclab.xpresso.formelements
{
	import mx.core.UIComponent;
	import mx.controls.Image;

	public class Image extends mx.controls.Image implements FormElement
	{
		
		protected var destinationColumn:String;
		
		public function getValue():String
		{
			return String(this.source);
		}
		
		
		public function createLabel(attachingElement:UIComponent, label:String):void
		{
		}
		
		public function getName():String
		{
			return String(this.name);
		}
		
		public function setValue(value:String):void
		{
			this.source = value;
		}

		public function getAttribute(attribute:String):String{
			return this[attribute];
		}
		
		public function setAttribute(attribute:String, attributeValue:String):void{
			this[attribute] = attributeValue;
		}
		
		public function prepareForInsert():void{
			// This one is more complicated ...
		}
		
	}
}